 <!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        .container {
            background: lightskyblue;
            height: 100px;
            width: 100vw;
        }
        .test1 {
            background: lightcoral;
            height: 50vh;
            width: 50%;
            float: left;
        }
        .test2 {
            background: lightgreen;
            height: 50%;
            width: 50vw;
            float: left;
        }
        img {
            max-width: 100vw;
        }
    </style>
 </head>
 <body>
    <div class="container">
        <div class="test1">
            字
        </div>
        <div class="test2">
            第二个字
        </div>
        <img src="./images/1.jpg" alt="">
    </div>
 </body>
 </html>